package com.gee.common;

import javax.microedition.lcdui.Graphics;

public abstract class IGameState {
	public int lastKey = -100;
	
	public int key = -100;
	
	public boolean initOver = false;

	public abstract void init();

	public abstract void keyProcess();

	public abstract void paint(Graphics g);

	public void update() {
		keyProcess();
		init();
	}

	public void setKey(int keyState) {
		key = keyState;
	}

	public void clearKey(boolean is) {
		if (is) {
			key = -100;
		}
	}
}
